using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SiteECSWeb;

public partial class JoinStatement : SiteECSWeb.PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    protected void lbSignUp_Click(object sender, EventArgs e)
    {
        if (rdlistCompanyType.SelectedIndex == -1 ||
            rdlistCompanyType.SelectedIndex == 0)
        {
                        
            Response.Redirect( Helper.NavURLParamsStringVirtualName((object)"NewCompanyAccount",
                Globals.Settings.VirtualNamesInfo.CompanyAccountReg,true));
        }
        else
        {
            Response.Redirect("~/LocalCompanies/AddCompany.aspx?me=ityy");
        }
        //foreach (RadioButtonList companType in RdCompanyType)
        //{
        //    if (companType.Value== "1")
        //    {
        //        Response.Redirect("~/LocalCompanies/AddCompany.aspx?me=itis");
        //    }
        //    else
        //    {
        //        if (!companType.Selected || companType.Selected)
        //        {
        //            Response.Redirect("~/LocalCompanies/AddCompany.aspx?me=ityy");
        //        }
        //    }
        //}
    }
}
